{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_jdgjb/template/public/ygcss.css">
<style type="text/css">
  /*#frame-5{display: block;visibility: visible;}*/
  .yg_inp>input{margin-bottom: 10px;}
  .storeimg{
  	max-width: 300px;
  	max-height: 300px;
  }
  .bigzheng,.bigfan{min-width: 500px;min-height: 500px;max-width: 600px;max-height: 600px;}
  .xuanbtn1,.xuanbtn2,.xuanbtn3,.xuanbtn4{
    position: absolute;
    bottom: 10px;
    right: 5%;
  }
</style>
<ul class="nav nav-tabs">    
  <span class="ygxian"></span>
  <div class="ygdangq">当前位置:</div>
  <li><a href="{php echo $this->createWebUrl('rzcheck')}">入驻审核</a></li>
  <li class="active"><a href="javascript:void(0);">入驻详情</a></li>
</ul>
<div class="main">
  <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="invitative">
    <div class="panel panel-default ygdefault">
      <div class="panel-heading wyheader">
        入驻审核&nbsp;>&nbsp;入驻详情
      </div>
      <div class="panel-body">
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">门店名称</label>
          <div class="col-sm-9">
            <input type="text" name="name" value="{$item['name']}" id="web_name" class="form-control" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">联系人姓名</label>
          <div class="col-sm-9">
            <input type="text" name="link_name" value="{$item['link_name']}" id="web_name" class="form-control" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">联系人电话</label>
          <div class="col-sm-9">
            <input type="text" name="link_tel" value="{$item['link_tel']}" id="web_name" class="form-control" />
          </div>
        </div>
          <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">地址</label>
          <div class="col-sm-9">
            <input type="text" name="address" value="{$item['address']}" id="web_name" class="form-control" />
          </div>
        </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label" style="margin-right: 15px;"><font color="red">*</font>门店类型</label>
                    <select class="col-sm-8" name="md_type">
                        <option value="" >请选择分类</option> 
                        {loop $storetype $key $item2}
                        {if $item2['id']==$item['md_type']}
                        <option value="{$item2['id']}" selected="selected">{$item2['type_name']}</option>
                        {else}
                        <option value="{$item2['id']}" >{$item2['type_name']}</option>
                        {/if}
                        {/loop}
                    </select>
                    <div class="help-block col-md-8 col-md-offset-2">
                        * 请选择商户门店类型
                    </div>
                </div>
              <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">门店logo</label>
          <div class="col-sm-9">
            <img src="{$item['logo']}" data-toggle="modal" >
          </div>
        </div>
        <div class="form-group">
          <label class="col-md-2 control-label">身份证正面照</label>
          <div class="col-sm-3">
      		<img class="storeimg attzheng" id="usertu1{$row['id']}" src="{media $item['zm_img']}" data-toggle="modal" data-target="#myModalu{$row['id']}">
          <!-- —————————放大图片——————————— -->
          	<div class="modal fade" id="myModalu{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h3 class="modal-title" id="myModalLabel">身份证正面照</h3>
                        </div>
                        <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">
                            <img class="bigzheng zhuan1" src="{media $item['zm_img']}">
                            <div class="btn btn-sm storeblue xuanbtn1">
                                <span class="fa fa-share"></span>点击旋转
                              </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- —————————放大图片——————————— -->
          </div>
          <div class="col-md-2" style="text-align: right;">身份证反面照</div>
          	<div class="col-sm-3">
	            <img class="storeimg attfan" id="usertu2{$row['id']}" src="{media $item['fm_img']}" data-toggle="modal" data-target="#myModalu2{$row['id']}">
	          	<div class="modal fade" id="myModalu2{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	                <div class="modal-dialog" role="document">
	                    <div class="modal-content">
	                        <div class="modal-header">
	                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	                            <h3 class="modal-title" id="myModalLabel">身份证反面照</h3>
	                        </div>
	                        <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">
	                            <img class="bigfan zhuan2" src="{media $item['fm_img']}">
                              <div class="btn btn-sm storeblue xuanbtn2">
                                <span class="fa fa-share"></span>点击旋转
                              </div>
	                        </div>
	                        <div class="modal-footer">
	                            <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
	                        </div>
	                    </div>
	                </div>
	            </div>
          	</div>
        </div>
      
         <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">营业执照</label>
            <div class="col-sm-3">
                      <img class="storeimg" id="usertu3{$row['id']}" src="{media $item['yyzz']}" data-toggle="modal" data-target="#card1{$row['id']}">
                      <div class="modal fade" id="card1{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                          <div class="modal-dialog" role="document">
                              <div class="modal-content">
                                  <div class="modal-header">
                                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                      <h3 class="modal-title" id="myModalLabel">银行卡正面照</h3>
                                  </div>
                                  <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">
                                      <img class="bigfan zhuan3" src="{media $item['yyzz']}">
                              <div class="btn btn-sm storeblue xuanbtn3">
                                <span class="fa fa-share"></span>点击旋转
                              </div>
                                  </div>
                                  <div class="modal-footer">
                                      <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
                                  </div>
                              </div>
                          </div>
                      </div>
            </div>
        </div> 
       <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">补充说明</label>
    <div class="col-sm-10">
      {php echo tpl_ueditor('details',$item['details']);}
  </div>
</div>

    <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">状态</label>
      <div class="col-sm-9">
        <select name="state" class="col-md-4">
          {if $item['state']==1}
          <option value="1" selected>待审核</option>
          <option value="2" >已通过</option>
          <option value="3" >已拒绝</option>
          {elseif $item['state']==2}
          <option value="1" >待审核</option>
          <option value="2" selected>已通过</option> 
          <option value="3" >已拒绝</option>
          {elseif $item['state']==3}
          <option value="1" >待审核</option>
          <option value="2">已通过</option>
          <option value="3"  selected>已拒绝</option>
            {elseif $item['state']==4}
          <option value="1" >待审核</option>
          <option value="2">已通过</option>
          <option value="3">已拒绝</option>
          <option value="4"  selected>已到期</option>
          {else}
          <option value="1" >待审核</option>
          <option value="2">已通过</option>
          <option value="3">已拒绝</option>
           <option value="4" >已到期</option>
          {/if}
        </select>
      </div>
    </div>

</div>

</div>
<div class="form-group">
  <a class="btn col-sm-2" style="color: white;background-color: #44ABF7;" href="{php echo $this->createWebUrl('rzcheck');}">返回列表</a>
  <div class="col-sm-1"></div>
   <input class="btn col-lg-3 col-lg-push-1" style="color: white;background-color: #44ABF7;" type="submit" name="submit" value="修改" /> 
  <input type="hidden" name="token" value="{$_W['token']}" />
  <input type="hidden" name="id" value="{$item['id']}" />
</div>
</form>
</div>
<script type="text/javascript">
  $(function(){
    $("#frame-0").show();
    $("#yframe-0").addClass("wyactive");
    var zhuan1=0;
    $(".xuanbtn1").click(function(){
      zhuan1 = zhuan1+90;
      $(".zhuan1").css({"transform":"rotate("+zhuan1+"deg)"});
    })
    var zhuan2=0;
    $(".xuanbtn2").click(function(){
      zhuan2 = zhuan2+90;
      $(".zhuan2").css({"transform":"rotate("+zhuan2+"deg)"});
    })
    var zhuan3=0;
    $(".xuanbtn3").click(function(){
      zhuan3 = zhuan3+90;
      $(".zhuan3").css({"transform":"rotate("+zhuan3+"deg)"});
    })
    var zhuan4=0;
    $(".xuanbtn4").click(function(){
      zhuan4 = zhuan4+90;
      $(".zhuan4").css({"transform":"rotate("+zhuan4+"deg)"});
    })
  })
</script>
{template 'common/footer'}